//
//  ContactPersonNick.m
//  timelyRain
//
//  Created by Jiafei Wei on 2016/12/23.
//  Copyright © 2016年 Jiafei Wei. All rights reserved.
//

#import "ContactPersonNick.h"

@interface ContactPersonNick ()
@property (weak, nonatomic) IBOutlet UITextField *nick;

@end

@implementation ContactPersonNick

- (void)viewDidLoad {
    [super viewDidLoad];
     [super setTitleView:self.view withName:@"昵称"];
    _nick.text=_nickValue;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}
-(void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:YES];
    NSNotification * notice = [NSNotification notificationWithName:@"setting_data" object:nil userInfo:@{@"type":@"nick",@"data":_nick.text}];
    [[NSNotificationCenter defaultCenter]postNotification:notice];
}
@end
